<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><!--JBuilder QuickDoc-->
<HEAD>
<TITLE>Class parser.TokenMgrError</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>

<H2>
<FONT SIZE="-1">parser</FONT>
<BR>Class TokenMgrError</H2>
<DL>
<DT>public class <B>TokenMgrError</B><DT>extends java.lang.Error
</DL>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF"><TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B>
</FONT></TD></TR></TABLE>

<A NAME="LEXICAL_ERROR"></A>

<H3>LEXICAL_ERROR</H3>
<PRE>
static final int <B>LEXICAL_ERROR</B></PRE>
<DL><DD>Lexical error occured.<DL><DD></DD></DL></DD>
</DL>
<DL></DL>
<HR>

<A NAME="STATIC_LEXER_ERROR"></A>

<H3>STATIC_LEXER_ERROR</H3>
<PRE>
static final int <B>STATIC_LEXER_ERROR</B></PRE>
<DL><DD>An attempt wass made to create a second instance of a static token manager.<DL><DD></DD></DL></DD>
</DL>
<DL></DL>
<HR>

<A NAME="INVALID_LEXICAL_STATE"></A>

<H3>INVALID_LEXICAL_STATE</H3>
<PRE>
static final int <B>INVALID_LEXICAL_STATE</B></PRE>
<DL><DD>Tried to change to an invalid lexical state.<DL><DD></DD></DL></DD>
</DL>
<DL></DL>
<HR>

<A NAME="LOOP_DETECTED"></A>

<H3>LOOP_DETECTED</H3>
<PRE>
static final int <B>LOOP_DETECTED</B></PRE>
<DL><DD>Detected (and bailed out of) an infinite loop in the token manager.<DL><DD></DD></DL></DD>
</DL>
<DL></DL>
<HR>

<A NAME="errorCode"></A>

<H3>errorCode</H3>
<PRE>
int <B>errorCode</B></PRE>
<DL><DD>Indicates the reason why the exception is thrown. It will have one of the above 4 values.<DL><DD></DD></DL></DD>
</DL>
<DL></DL>
<HR>

<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF"><TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B>
</FONT></TD></TR></TABLE>

<A NAME="addEscapes(java.lang.String)"></A>

<H3>addEscapes</H3>
<PRE>
protected static final java.lang.String <B>addEscapes</B>(java.lang.String&nbsp;str)</PRE>
<DL><DD>Replaces unprintable characters by their espaced (or unicode escaped) equivalents in the given string<DL><DD></DD></DL></DD>
</DL>
<DL></DL>
<HR>

<A NAME="LexicalError(boolean, int, int, int, java.lang.String, char)"></A>

<H3>LexicalError</H3>
<PRE>
protected static java.lang.String <B>LexicalError</B>(boolean&nbsp;EOFSeen,
                                               int&nbsp;lexState,
                                               int&nbsp;errorLine,
                                               int&nbsp;errorColumn,
                                               java.lang.String&nbsp;errorAfter,
                                               char&nbsp;curChar)</PRE>
<DL><DD>Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error. Parameters : EOFSeen : indicates if EOF caused the lexicl error curLexState : lexical state in which this error occured errorLine : line number when the error occured errorColumn : column number when the error occured errorAfter : prefix that was seen before this error occured curchar : the offending character Note: You can customize the lexical error message by modifying this method.<DL><DD></DD></DL></DD>
</DL>
<DL></DL>
<HR>

<A NAME="getMessage()"></A>

<H3>getMessage</H3>
<PRE>
public java.lang.String <B>getMessage</B>()</PRE>
<DL><DD>You can also modify the body of this method to customize your error messages. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not of end-users concern, so you can return something like : "Internal Error : Please file a bug report .... " from this method for such cases in the release version of your parser.<DL><DD></DD></DL></DD>
</DL>
<DL></DL>
<HR>

</BODY>
</HTML>